NAME
	GU_SizeWindow -- Resize a window, and moves it if necessary

   SYNOPSIS
	success = GU_SizeWindow(window, deltax, deltay)
	D0,SR(Z)                A0      D0      D1

	BOOL GU_SizeWindow(struct Window *, WORD, WORD);

   FUNCTION
	This function sends a reuqest to Intuition asking to size the window
	the specified amounts. The delta arguments describes how much to
	size the window along the respective axes.

	This function works like the Intuition function SizeWindow(), and the
	parameters are also the same. This function also moves the window
	automatically if it could not be sized at the current position.

	Remember that this function does not change the window immediately.
	Just like the Intuition functions SizeWindow(), MoveWindow() and
	ChangeWindowBox(), you have to wait for a IDCMP_CHANGEWINDOW IDCMP
	message to arrive.

	An extra feature of GU_SizeWindow is that it sends back a result,
	telling you if the window could be resized or not.

   INPUTS
	window - pointer to the structure of the window to be sized

	deltax - signed value describing how much to size the window
	         on the x-axis

	deltay - signed value describing how much to size the window
	         on the y-axis

   RESULT
	success - TRUE if the window could be sized the specified amount

	SR(Z)   - 0 if function returns TRUE, 1 otherwise

   BUGS
	none known

   SEE ALSO
	intuition/ChangeWindowBox(), intuition/SizeWindow()
	intuition/MoveWindow()


[Main] [Previous] [Next]

Converted on 19 Jul 1996 with RexxDoesAmigaGuide2HTML by Michael Ranner.